package com.kaili.basic.mapper;

import com.kaili.basic.pojo.entity.BaseNewsRange;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * @author: dxj
 * @descrinption: Created by dxj on 18-6-27.
 * @modified:
 */
@Mapper
public interface BaseNewsRangeMapper {

    public int addNewsRange(BaseNewsRange newsRange);

    //根据新闻ID和网点ID查询发布范围
    public BaseNewsRange getNewsRangeBySiteId(Map<String,Object> param);

    //根据通知ID删除所有发布范围
    public int delNewsRangeByNewsId(Long newsId);

}
